package dto;

import org.springframework.web.multipart.MultipartFile;

public class ProductDTO {
	private int productId;
	private String productName;//상품명
	private int originalPrice;//원래가격
	private int reducedPrice;//할인된가격
	private int reducedRate;//할인율
	private int readCnt;//조회수
	private String companyId;//업체
	private int stockEA;//재고량
	private String registerDate;//등록일
	private String updateDate;//수정일
	private String deleteDate;
	private String useStartDate;//사용가능한 시작일
	private String useEndDate;//사용종료일
	private String saleLocation;//판매지역
	private String productCategory;//제품종류
	private String productURL;
	private String preference_seq;//나이대별 선호도
	private String productImageFilename;//파일이름
	private String content;
	private MultipartFile productImage;
	
	public ProductDTO() {}

	public ProductDTO(int productId, String productName, int originalPrice,
			int reducedPrice, int reducedRate, int readCnt, String companyId,
			int stockEA, String registerDate, String updateDate,
			String deleteDate, String useStartDate, String useEndDate,
			String saleLocation, String productCategory, String productURL,
			String preference_seq, String productImageFilename, String content,
			MultipartFile productImage) {
		super();
		this.productId = productId;
		this.productName = productName;
		this.originalPrice = originalPrice;
		this.reducedPrice = reducedPrice;
		this.reducedRate = reducedRate;
		this.readCnt = readCnt;
		this.companyId = companyId;
		this.stockEA = stockEA;
		this.registerDate = registerDate;
		this.updateDate = updateDate;
		this.deleteDate = deleteDate;
		this.useStartDate = useStartDate;
		this.useEndDate = useEndDate;
		this.saleLocation = saleLocation;
		this.productCategory = productCategory;
		this.productURL = productURL;
		this.preference_seq = preference_seq;
		this.productImageFilename = productImageFilename;
		this.content = content;
		this.productImage = productImage;
	}

	public int getProductId() {
		return productId;
	}

	public void setProductId(int productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public int getOriginalPrice() {
		return originalPrice;
	}

	public void setOriginalPrice(int originalPrice) {
		this.originalPrice = originalPrice;
	}

	public int getReducedPrice() {
		return reducedPrice;
	}

	public void setReducedPrice(int reducedPrice) {
		this.reducedPrice = reducedPrice;
	}

	public int getReducedRate() {
		return reducedRate;
	}

	public void setReducedRate(int reducedRate) {
		this.reducedRate = reducedRate;
	}

	public int getReadCnt() {
		return readCnt;
	}

	public void setReadCnt(int readCnt) {
		this.readCnt = readCnt;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String no) {
		this.companyId = no;
	}

	public int getStockEA() {
		return stockEA;
	}

	public void setStockEA(int stockEA) {
		this.stockEA = stockEA;
	}

	public String getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(String registerDate) {
		this.registerDate = registerDate;
	}

	public String getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}

	public String getDeleteDate() {
		return deleteDate;
	}

	public void setDeleteDate(String deleteDate) {
		this.deleteDate = deleteDate;
	}

	public String getUseStartDate() {
		return useStartDate;
	}

	public void setUseStartDate(String useStartDate) {
		this.useStartDate = useStartDate;
	}

	public String getUseEndDate() {
		return useEndDate;
	}

	public void setUseEndDate(String useEndDate) {
		this.useEndDate = useEndDate;
	}

	public String getSaleLocation() {
		return saleLocation;
	}

	public void setSaleLocation(String saleLocation) {
		this.saleLocation = saleLocation;
	}

	public String getProductCategory() {
		return productCategory;
	}

	public void setProductCategory(String productCategory) {
		this.productCategory = productCategory;
	}

	public String getProductURL() {
		return productURL;
	}

	public void setProductURL(String productURL) {
		this.productURL = productURL;
	}

	public String getPreference_seq() {
		return preference_seq;
	}

	public void setPreference_seq(String preference_seq) {
		this.preference_seq = preference_seq;
	}

	public String getProductImageFilename() {
		return productImageFilename;
	}

	public void setProductImageFilename(String productImageFilename) {
		this.productImageFilename = productImageFilename;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public MultipartFile getProductImage() {
		return productImage;
	}

	public void setProductImage(MultipartFile productImage) {
		this.productImage = productImage;
	}

	@Override
	public String toString() {
		return "ProductDTO [productId=" + productId + ", productName="
				+ productName + ", originalPrice=" + originalPrice
				+ ", reducedPrice=" + reducedPrice + ", reducedRate="
				+ reducedRate + ", readCnt=" + readCnt + ", companyId="
				+ companyId + ", stockEA=" + stockEA + ", registerDate="
				+ registerDate + ", updateDate=" + updateDate + ", deleteDate="
				+ deleteDate + ", useStartDate=" + useStartDate
				+ ", useEndDate=" + useEndDate + ", saleLocation="
				+ saleLocation + ", productCategory=" + productCategory
				+ ", productURL=" + productURL + ", preference_seq="
				+ preference_seq + ", productImageFilename="
				+ productImageFilename + ", content=" + content
				+ ", productImage=" + productImage + "]";
	}
	
	

}
